In [17]:
while True:#Loops forever never ends.
    count = int(input("choose a number, please: "))#Asking the user to choose any number.
    def num(count):#Defining the variable.
        if (count % 5) == 0 and (count % 3) == 0:#Calulations.
            print ("FizzBuzz")#It is showing the user that the word is Fizzbuzz. 
        elif (count % 3) == 0:#Calculations.
            print("Fizz")#It is showing the user that the word is Fizz.
        elif (count % 5) == 0:#Calculations.
            print("Buzz")#It is showing the user that the word is Buzz.
        else:#If the statement isn't true this is.
            print(count)#It is showing the user that the word is count. 
            
    num(count)#Calling the function.
    
    exitAnswer = input("Do you want to play again? Y or N?")#Asking the user if they want to play again yes or no. 
    if exitAnswer == "Y" or exitAnswer == "y":#If the user wants to play again the program will run again.
        num(count) #Calling the function.
    elif exitAnswer == "N"or exitAnswer == "n":#If the user doesn't want to play again the program will not run again.
        print("Have a fabulous day, thanks again for playing!")#The program will print out have a good day/ 
        break#It ends the program.
choose a number, please: 17
17
Do you want to play again? Y or N?n
Have a fabulous day, thanks again for playing!
In [ ]: